/* Web端字体规范 */
.font-30-bold {
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
}

.font-24-bold {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.font-20-bold {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.font-18-bold {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

.font-16 {
  font-size: 16px;
  line-height: 24px;
}

.font-16-bold {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.font-14-bold {
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.font-14 {
  font-size: 14px;
  line-height: 22px;
}

.font-12 {
  font-size: 12px;
  line-height: 20px;
}

.font-12-bold {
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

// 404 和 403 页面样式
.no-page-no-permission {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background-color: @baseBgColor;
}

// 带描述标题的控件(标题+控件的那种组合)
.describe-group {
  display: flex;
  align-items: center;

  .describe-group-title {
    .font-14();

    margin-right: 12px;
    word-break: keep-all;
    color: @text02;
  }
}

// 重置按钮
.reset-btn {
  width: 32px;
  height: 22px;
  color: #4686ed;

  &:hover {
    opacity: 0.85;
    cursor: pointer;
  }
}

// table列的操作按钮
.table-default-action {
  display: flex;
  align-items: center;
  color: @primary02;

  p {
    margin-right: 16px;

    &:hover {
      color: rgba(70, 134, 237, 0.8);
      cursor: pointer;
    }
  }

  p:last-child {
    margin-right: 0;
  }
}

// 还在用 JS 做节流吗？CSS 也可以防止按钮重复点击
button {
  animation: throttle 0.05s step-end forwards;
}

button:active {
  animation: none;
}
@keyframes throttle {
  from {
    pointer-events: none;
  }

  to {
    pointer-events: all;
  }
}
// 旋转
.rotate {
  animation: rotate 1s linear infinite;
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

//自定义输入框标题下边距
.input-title {
  margin-bottom: 4px;
}

.global-delete-modal {
  height: 176px;

  .ant-modal-content {
    position: relative;
    border: 1px solid @borderColor02;
    padding: 0;
    background-color: rgba(14, 22, 36, 0.8);
    backdrop-filter: blur(3px);

    .ant-modal-body {
      padding: 0 !important;

      .ant-modal-confirm-body-wrapper {
        padding: 0 !important;

        .ant-modal-confirm-body {
          padding: 40px 40px 8px;
          // flex-wrap: nowrap;

          .ant-modal-confirm-title {
            margin-bottom: 0;
            font-weight: 400;
            color: @text01;
          }

          .ant-modal-confirm-content {
            color: @text01;
          }
        }

        .ant-modal-confirm-btns {
          margin: 0 !important;
          padding: 20px 24px;

          button {
            min-width: 60px !important;
            height: 36px !important;
          }
        }
      }
    }
  }

  .ant-modal-content::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    content: "";
    filter: blur(10px);
  }
}

// 带loading和阴影的遮罩层
.shade-page {
  position: fixed;
  top: 72px;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: calc(100vh - 72px);
  background-color: @mask05;
  backdrop-filter: saturate(150%) blur(10px);
  transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);

  .ant-spin {
    color: rgba(24, 104, 233, 0.65);
    transform: scale(1.2);
  }
}
// 风险等级样式
.risk-level {
  padding: 0 6px;
  border-radius: 4px;
  max-height: 20px;
  font-size: 12px;
  background: rgba(186, 59, 41, 0.1);
  line-height: 18px;
  &--danger {
    border: 1px solid @danger01;
    color: @danger01;
  }
  &--warning {
    border: 1px solid @warning01;
    color: @warning01;
  }
  &--normal {
    border: 1px solid @link01;
    color: @link01;
  }
}
